package org.phoenix.mall.admin.common.pojo.vo;

import lombok.Data;
import org.phoenix.mall.admin.common.utils.BuildObjUtil;

import java.util.ArrayList;
import java.util.List;

@Data
public class RoleVO {

    private static List<RoleVO> globleRoleList = new ArrayList<>();

    private Integer id;
    private String roleName;
    private String roleDesc;
    private List<RightVO> children;

    static {
        globleRoleList = BuildObjUtil.build("data/roles.json", RoleVO.class);
    }


    public static List<RoleVO> getGlobleRoleList() {
        return globleRoleList;
    }

}
